package com.dw.model.article.dtos.article;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.dromara.easyes.annotation.IndexField;
import org.dromara.easyes.annotation.IndexId;
import org.dromara.easyes.annotation.rely.Analyzer;
import org.dromara.easyes.annotation.rely.FieldType;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class AddArticleDTO {

    //文章标题
    private String articleTitle;
    //文章内容
    @NotBlank
    private String articleContent;
    //文章图片
    private String articleImage;
    //用户昵称
    @NotBlank
    private String nickname;

    private DateTime createdTime;

    private List<Long> categoryIds;

    private List<Long> labelIds;

}
